package com.qd.panda.model;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 重试记录
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_user_stroke_order_retry")
public class UserStrokeOrderRetry extends Model<UserStrokeOrderRetry> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "order_retry_id", type = IdType.ASSIGN_ID)
    private String orderRetryId;
    /**
     * 订单类型:5商城购物
     */
    @TableField("order_type")
    private Integer orderType;
    /**
     * 操作时间
     */
    @TableField("add_time")
    private LocalDateTime addTime;
    /**
     * 状态值:1成功
     */
    @TableField("state_code")
    private Integer stateCode;
    /**
     * 异常信息
     */
    @TableField("err_msg")
    private String errMsg;
    /**
     * 订单ID
     */
    @TableField("order_id")
    private String orderId;
    /**
     * 处理人
     */
    @TableField("handle_person_id")
    private String handlePersonId;
    /**
     * 处理人单位
     */
    @TableField("handle_org_id")
    private String handleOrgId;

    public void freeData() {
        this.orderRetryId = null;
        this.orderType = null;
        this.addTime = null;
        this.stateCode = null;
        this.errMsg = null;
        this.orderId = null;
        this.handlePersonId = null;
        this.handleOrgId = null;
    }

}
